<!doctype html>
<html xmlns:th="http://www.thymeleaf.org" lang="zh-CN">
<head>
  <title>清华大学学生教育互联网公益协会</title>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
  <link rel="stylesheet" th:href="@{/css/bootstrap.min.css}" />
  <script th:src = "@{/js/jquery.min.js}"></script>
  <script th:src = "@{/js/bootstrap.min.js}"></script>

  <style>
    .navbar-brand {
      padding: 0 15px;
    }
    html,body,#container {
      height:100%;
    }
    .zhanwei {
      display:block;
      height:10%;
    }
  </style>
</head>
<body>
  <div id="container" class="container">
    <header>
      <nav class="navbar navbar-default bg-faded">
        <div class="container-fluid">
          <!-- Brand and toggle get grouped for better mobile display -->
          <div class="navbar-header">
            <a class="navbar-brand" href="#"><img th:src="@{/img/brand.jpg}" height="50"/></a>
          </div>
        </div><!-- /.container-fluid -->
      </nav>
    </header>
    <div class="zhanwei"></div>
    <main>
      <p th:if="${param.logout}" class="alert">You have been logged out</p>
	  <p th:if="${param.error}" class="alert alert-error">There was an error, please try again</p>
      <form class="form-horizontal" th:action="@{/login}" method="POST">
        <div class="form-group">
          <label for="username" class="col-sm-2 control-label">用户名</label>
          <div class="col-sm-10">
            <input name="username" type="text" class="form-control" id="username" placeholder="输入您的用户名" />
          </div>
        </div>
        <div class="form-group">
          <label for="password" class="col-sm-2 control-label">密码</label>
          <div class="col-sm-10">
            <input name="password" type="password" class="form-control" id="password" placeholder="输入密码，长度至少六位" />
          </div>
        </div>
        <!--  
        <div class="form-group">
          <div class="col-sm-offset-2 col-sm-10">
            <div class="checkbox">
              <label>
                <input type="checkbox" /> 自动登录
              </label>
            </div>
          </div>
        </div>
        -->
        <div class="form-group">
          <div class="col-sm-offset-2 col-sm-10">
            <button type="submit" class="btn btn-default">登录</button>
            <a th:href="@{/regist}" class="btn btn-default">注册</a>
          </div>
        </div>
      </form>
    </main>
  </div>
</body>
</html>
